package com.lx.screenshot.service.floatWindowService;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.lx.screenshot.floatWindow.FloatWindow;

/**
 * 在应用后台提供悬浮窗功能的支持
 */
public class FloatWindowService extends Service {
    private ServiceBinder binder;

    public FloatWindowService() {
    }

    @Override
    public IBinder onBind(Intent intent) {
        return binder;
    }

    @Override
    public void onCreate() {
        super.onCreate();

        // 初始化binder
        binder = new ServiceBinder(new FloatWindow(FloatWindowService.this));
    }

}